/*
 *  Copyright 2022 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import '../variables.less';

.ingestion-content {
  display: flex;
  justify-content: space-around;
}
.ingestion-wrapper {
  display: flex;
}
.ingestion-rounder {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid @primary-1;
  background: white;
  border-radius: 50%;
  margin-top: 0.15rem;
  z-index: 1;
}
.ingestion-rounder.active {
  border-color: @primary-color;
}
.ingestion-rounder.completed {
  background-color: @primary-1;
}

.ingestion-rounder.completed::after {
  font-size: 12px;
  content: '\2713';
  display: block;
  margin-top: -4px;
  font-weight: 900;
  color: @primary-color;
}

.ingestion-deploy-line {
  top: 29px;
  bottom: 0;
  position: absolute;
  width: 100%;
  height: 4px;
}

.ingestion-deploy-rounder {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-top: 0.15rem;
  z-index: 1;
}

.ant-steps-label-vertical .ant-steps-item-tail {
  padding: 3.5px 0px;
}

.ant-steps-item-finish
  > .ant-steps-item-container
  > .ant-steps-item-tail::after {
  background-color: @primary-1;
  height: 2px;
}

.ant-steps-item-process
  > .ant-steps-item-container
  > .ant-steps-item-tail::after {
  background-color: @primary-1;
  height: 2px;
}

.ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-tail::after {
  background-color: @primary-1;
  height: 2px;
}

.ant-steps-small .ant-steps-item-title {
  font-size: 12px;
  color: @primary-color;
}

.ant-steps-item-finish
  > .ant-steps-item-container
  > .ant-steps-item-content
  > .ant-steps-item-title {
  color: @primary-color;
}

.ant-steps-item-process
  > .ant-steps-item-container
  > .ant-steps-item-content
  > .ant-steps-item-title {
  color: black;
}
.ant-steps-item-wait
  > .ant-steps-item-container
  > .ant-steps-item-content
  > .ant-steps-item-title {
  color: black;
}

.task-resolution-steps {
  .ant-steps-item-tail {
    padding: 3.5px 24px;
  }

  .ant-steps-item-finish
    > .ant-steps-item-container
    > .ant-steps-item-content
    > .ant-steps-item-title {
    color: @text-color;
  }

  .ant-steps-item-container > .ant-steps-item-tail::after {
    background-color: #757575;
    height: 1px;
  }

  .new {
    .ant-steps-item-icon {
      background-color: @purple-1;
      border-color: @purple-2;
      .ant-steps-icon {
        color: @purple-2;
      }
    }
  }

  .ack {
    .ant-steps-item-icon {
      background-color: @blue-1;
      border-color: @blue-2;
      .ant-steps-icon {
        color: @blue-2;
      }
    }
  }
  .assigned {
    .ant-steps-item-icon {
      background-color: @yellow-3;
      border-color: @yellow-2;
      .ant-steps-icon {
        color: @yellow-2;
      }
    }
  }
  .resolved {
    .ant-steps-item-icon {
      background-color: @green-4;
      border-color: @green-3;
      .ant-steps-icon {
        color: @green-3;
      }
    }
  }
}
